package com.abc.springboot.service;

import com.abc.springboot.pojo.Teacher;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface TeacherService {
    //查找全部teacher
    List<Teacher> queryTeachers();
    //通过id查找teacher
    Teacher queryTeacherById(int id);
    //通过id更新teacher
    int updateTeacherById(Teacher teacher);
    //通过id删除teacher
    int deleteTeacherById(int id);
}
